﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.ConnectionString_SQLSERVER
{
    public class Sys_Units:NFinal.Struct
    {
		public System.Int32? ID {get;set;}
		public System.String Name {get;set;}
		public System.Int32? ParentId {get;set;}
		public System.String ParentIds {get;set;}
		public System.Int32? Floor {get;set;}
		public System.String ReMark {get;set;}
		public System.String PyCode {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"ID\":");
					tw.Write(ID==null?"null" : ID.ToString());
					tw.Write(",");
					tw.Write("\"Name\":");
					tw.Write("\"");
					tw.Write(Name==null?"null":Name);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"ParentId\":");
					tw.Write(ParentId==null?"null" : ParentId.ToString());
					tw.Write(",");
					tw.Write("\"ParentIds\":");
					tw.Write("\"");
					tw.Write(ParentIds==null?"null":ParentIds);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"Floor\":");
					tw.Write(Floor==null?"null" : Floor.ToString());
					tw.Write(",");
					tw.Write("\"ReMark\":");
					tw.Write("\"");
					tw.Write(ReMark==null?"null":ReMark);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"PyCode\":");
					tw.Write("\"");
					tw.Write(PyCode==null?"null":PyCode);
					tw.Write("\"");
			tw.Write("}");
		}
		#endregion
    }
}
